package com.car.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_maintain")
public class Maintain implements Serializable {
    @TableId("maintainId")
    private int maintainId;
    @TableField("carIdCard")
    private String carIdCard;
    @TableField("initMile")
    private double initMile;
    @TableField("initOil")
    private double initOil;
    @TableField("place")
    private String place;
    @TableField("userId")
    private int userId;
    @TableField("maintainStart")
    private String maintainStart;
    @TableField("maintainEnd")
    private String maintainEnd;
    @TableField("returnMile")
    private double returnMile;
    @TableField("returnOil")
    private double returnOil;
    @TableField("money")
    private int money;
    @TableField("maintainContent")
    private String maintainContent;
    @TableField("remark")
    private String remark;
    @TableField("nextMaintainTime")
    private String nextMaintainTime;
    @TableField("nextMaintainMile")
    private String nextMaintainMile;
    @TableField("state")
    private int state;
    @TableField(exist = false)
    private User user;
}
